<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Extension</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/AbstractClass_logo.png"
														alt="Abstract Class"
														title="Abstract Class"
														style="vertical-align: middle"> Extension</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
                <p class="implements">
            Implements interfaces:
            <ul>
                <li><a href="../default/ExtensionInterface.html">ExtensionInterface</a></li>            </ul>
        </p>
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Extension is a helper class that helps organize extensions better.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Fabien Potencier &lt;<a href="mailto:fabien.potencier@symfony-project.com">fabien.potencier@symfony-project.com</a>&gt;</li>
				<li><span class="field">abstract:</span> </li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_slinks---core---DependencyInjection---Extension---Extension.php.html">/slinks/core/DependencyInjection/Extension/Extension.php</a> (line <span class="field">21</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
											static <span class="method-result">void</span>
										<a href="#normalizeConfig" title="details" class="method-name">normalizeConfig</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$config</span>, <span class="var-type">key</span>&nbsp;<span class="var-name">$key</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
											static <span class="method-result">array</span>
										<a href="#normalizeKeys" title="details" class="method-name">normalizeKeys</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$config</span>)
									</div>
																				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#load" title="details" class="method-name">load</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tag</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$config</span>, <span class="var-type"><a href="../default/ContainerBuilder.html">ContainerBuilder</a></span>&nbsp;<span class="var-name">$configuration</span>)
									</div>
																											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodnormalizeConfig" id="normalizeConfig"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static normalizeConfig</span> (line <span class="line-number">90</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Normalizes a configuration entry.</p>
<p class="description"><p>This method returns a normalize configuration array for a given key  to remove the differences due to the original format (YAML and XML mainly).</p><p>Here is an example.</p><p>The configuration is XML:</p><p>&lt;twig:extension id=&quot;twig.extension.foo&quot; /&gt;  &lt;twig:extension id=&quot;twig.extension.bar&quot; /&gt;</p><p>And the same configuration in YAML:</p><p>twig.extensions: ['twig.extension.foo', 'twig.extension.bar']</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			normalizeConfig
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$config</span>, <span class="var-type">key</span>&nbsp;<span class="var-name">$key</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$config</span><span class="var-description">: A config array</span>			</li>
					<li>
				<span class="var-type">key</span>
				<span class="var-name">$key</span><span class="var-description">: The key to normalize</span>			</li>
				</ul>
		
			
	</div>
<a name="methodnormalizeKeys" id="normalizeKeys"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static normalizeKeys</span> (line <span class="line-number">54</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This method normalizes keys between the different configuration formats</p>
<p class="description"><p>Namely, you mostly have foo_bar in YAML while you have foo-bar in XML.  After running this method, all keys are normalized to foo_bar.</p><p>If you have a mixed key like foo-bar_moo, it will not be altered.  The key will also not be altered if the target key already exists.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> the config with normalized keys</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			normalizeKeys
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$config</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$config</span>			</li>
				</ul>
		
			
	</div>
<a name="methodload" id="load"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">load</span> (line <span class="line-number">32</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a specific configuration.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> \InvalidArgumentException When provided tag is not defined in this extension</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			load
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tag</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$config</span>, <span class="var-type"><a href="../default/ContainerBuilder.html">ContainerBuilder</a></span>&nbsp;<span class="var-name">$configuration</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tag</span><span class="var-description">: The tag name</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$config</span><span class="var-description">: An array of configuration values</span>			</li>
					<li>
				<span class="var-type"><a href="../default/ContainerBuilder.html">ContainerBuilder</a></span>
				<span class="var-name">$configuration</span><span class="var-description">: A ContainerBuilder instance</span>			</li>
				</ul>
		
				<hr class="separator" />
		<div class="notes">Implementation of:</div>
			<dl>
			<dt><a href="../default/ExtensionInterface.html#methodload">ExtensionInterface::load()</a></dt>
						<dd>Loads a specific configuration.</dd>
					</dl>
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Thu, 21 Jul 2011 00:28:38 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>